﻿using DI;
using Core.Context;
using Core.Dtos;
using Core.IPresentation;
using Core.IServices;
using StructureMap.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Presentation
{
    public abstract class ExtendedWebViewPage<TModel> : WebViewPage<TModel>
    {
        [SetterProperty]
        public IAppContext AppContext { get; set; }

        public string T(string key)
        {
            //return AppContext.LocaleStrings.Get(CurrentContext.Culture, key);
            return key;
        }

        [SetterProperty]
        public ICurrentContext CurrentContext { get; set; }
    }
}